package com.guagua.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guagua.blog.dto.CommentDTO;
import com.guagua.blog.entity.Comment;
import com.guagua.blog.vo.CommentVO;

import java.util.List;

public interface CommentService extends IService<Comment> {
    /**
     * 添加评论
     */
    Comment addComment(CommentDTO commentDTO, Long userId);
    
    /**
     * 获取文章评论列表
     */
    List<CommentVO> getCommentsByArticleId(Long articleId);
    
    /**
     * 删除评论
     */
    boolean deleteComment(Long commentId, Long userId);
} 